package com.Rpc远程调用简单版.client;

import com.Rpc远程调用简单版.IHelloService;

import java.io.IOException;

public class RpcClientTest {

    public static void main(String[] args) throws IOException {


        IHelloService iHelloService = (IHelloService)
                RpcClientUtil.init("127.0.0.1",8000).proxy(IHelloService.class);


        System.out.println(iHelloService.sum(1,2));

    }

}
